<!--顶部 广告 活动-->
<template>
  <div>
    <!-- <transition name="el-zoom-in-center">
      <div class="headerAd" v-show="show">
        <div :style="{ background :` url( ${ this.$store.state.homeDisplay.top_ad.img_url } ) 50% 0px no-repeat `}"></div>
        <span @click="hide" class="el-icon-close"></span>
      </div>
    </transition> -->
  </div>
</template>
<script>
export default {
  name: "headerAd",
  data() {
    return {
      show: true
    }
  },

  methods: {
    hide() {
      this.show = false
    }
  }
}
</script>
<style lang="scss" scoped>
.headerAd {
  width: 100%;
  height: 100px;
  background-color: #001151; // 背景颜色
  // cursor: pointer;
  div {
    width: 100%;
    height: 100px;
  }
  span {
    position: absolute;
    top: 7px;
    right: 7px;
    font-size: 24px;
    color: #ccc5c5;
    &:hover {
      transform: scale(1.1, 1.1);
      transition: 0.2s;
      color: #ffffff;
    }
  }
}
</style>
